<div class="bluebox">
	<div class="bluebox_content">
    	<div class="left">
    		<?php if (h($question['Question']['anonymous']) == '1') {?>
        		<a href="#!page/Profile/id/<%=quserid%>">
	post				<img class="avatar48 bkp_pic_profile" src="avatar/<%=avatar%>" alt="avatar" />
				</a>
			<?php } else {
				 echo $this->Html->image('unknown.png', array('alt' => 'avatar', 'border' => '0','class'=>'avatar48'));
			 } ?>
			<div id="AnswerPortlet-ChangeTopic" class="_left">
			</div>
        </div><!-- end q-left -->
        <div class="right">
			<a onclick="generateEvent('BookmarkQuestion')" id="AnswerPortlet-Bookmark" class="bookmark" title="Bookmark lại câu hỏi"></a>
			<div>
                <span class="topic_list" id="AnswerPortlet-TopicArea"></span>
				<a onclick="generateEvent('ChangeTopicButtonClick')" class="edit-note owner_fn">Sửa chủ đề</a>
			</div>
			<div id="AnswerPortlet-EditTopicContainer" style="display: none;">
				<div class="topic_list" id="AnswerPortlet-EditTopicArea"></div>
				<div class="topic_edit_area">
					<input id="AnswerPortlet-TopicInput" type="text" />
					<a onclick="generateEvent('CancelChangeTopic')" class="widget_button">Xong</a>
				</div>
			</div>
        	<div class="right_detail">
            	<div class="question_title" id="AnswerPortlet-QContent">
					<?php if (h($question['Question']['bestSource']) == '1') {?>
						<img alt="best source" title="<%=bestSource%>" src="resource/images/home/bestsource_green.png" />
					<?php } ?>
					<?php echo h($question['Question']['title']); ?>
				</div> 
            	<div class="question_detail">
					<span id="AnswerPortlet-QDetail"><?php echo h($question['Question']['content']); ?></span>
					<a onclick="generateEvent('ChangeQDetailButtonClick')" class="edit-note owner_fn">Sửa chi tiết câu hỏi</a>
					<span id="AnswerPortlet-QEditControl"></span>
				</div>
            	<div class="note extension-point" extensionName="QuestionTask">
					<% if (anonymous != 1) { %>
            			<span>Bởi</span><%=quser%><%=qusertarget?"<span>hỏi</span> "+qusertarget:""%>
					<% } %>
					<span><%=$.timeFormat(qdate)%></span>
					<span title="Bình chọn cho câu hỏi hay" class="action_button count_vote count_vote_action" id="AnswerPortlet-QVote" onclick="generateEvent('VoteUpQuestion', {id: <%=qid%>})"></span>
				</div>
            </div>
        </div><!-- end q-right -->
    </div><!-- end bluebox_content -->
</div><!-- end bluebox -->

<div class="lightbox">
	<div class="lightbox_content">
		<div id="AnswerPortlet-AnswersList"></div>
		<span id="AVIMControl"></span>
		<div id="AnswerPortlet-TextAreaContainer"></div>
		<div id="AnswerPortlet-HiddenAnswers">
			<div>
				<a class="note" onclick="$('#AnswerPortlet-HiddenAnswersList').toggle()"><span id="AnswerPortlet-HiddenAnswerNo">0</span> câu trả lời bị ẩn</a>&nbsp;<a href="#!page/Question/qid/550/s/the-nao-la-mot-cau-tra-loi-tot-o-askingvn">[?]</a>
			</div>
			<div style="display: none" id="AnswerPortlet-HiddenAnswersList"></div>
		</div>
	</div><!-- end lightbox_content-->
</div><!-- end lightbox-->
